public class Person {
    public String name;
    public int age;
    public Person(String name, int age){
        this.name = name;
        this.age = age;
        System.out.println("构造方法");
    }
    {
        System.out.println("实例方法");
    }
    static {
        System.out.println("静态方法");
    }

    public static void main(String[] args) {
        Person p1 = new Person("bit",19);
        System.out.println("----------------");

        Person p2 = new Person("liming",22);
    }
}

//结果先静后实再构造。且静态只被执行一次
